package com.pms.service;

import java.util.List;

import com.pms.dao.IdeaDao;

import com.pms.entity.Ideas;

public class IdeaService {
	IdeaDao dao=new IdeaDao();
	public List<Ideas> findByProid(String proid) {
		
		return dao.findByproid(proid);
	}
	
	
	public Ideas findById(String ideaId) {
		
		return dao.findByid(ideaId);
	}
	
	
	public void editIdea(String idid, String title, String note) {
		
		dao.update(idid,title,note);
		
	}
	public void save(Ideas idea) {
		dao.save(idea);
		
	}


	public void delById(String id) {
		dao.del(id);
		
	}


	public Ideas findid(String idid) {
		
		return dao.findid(idid);
	}

	
}
